package 类与对象.多态.多态参数;

public class Worker extends Employee{
    public Worker(String name, double salary) {
        super(name, salary);
    }

    public void work(){
        System.out.println("员工=" + getName()+"正在上班");
    }

    @Override
    public double getAnnual() {
        return super.getAnnual();
    }
}
